package com.qianmo.service.Impl;

import com.qianmo.mapper.UserMapper;
import com.qianmo.pojo.User;
import com.qianmo.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class UserServiceA implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(User user){
        return userMapper.getByUsernameAndPassword(user);
    }

    @Override
    public Integer register(User user){
        return userMapper.register(user);
    }

}
